

package cn.shengchao.examstar.distribute.infrastrure.service;

import cn.shengchao.examstar.distribute.infrastrure.po.DistributeContentProductThird;
import cn.shengchao.examstar.rpc.base.PageResult;
import cn.shengchao.examstar.rpc.distribute.req.ThirdProductDistributeUserQueryPage;
import cn.shengchao.examstar.rpc.distribute.resp.ThirdProductDistributeForUserRespEntity;
import cn.shengchao.examstar.rpc.distribute.resp.ThirdProductDistributeProxyInfoRespEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

public interface DistributeContentProductThirdService extends IService<DistributeContentProductThird> {

    PageResult<ThirdProductDistributeForUserRespEntity> pageList(ThirdProductDistributeUserQueryPage thirdProductDistributeUserQueryPage);

    void saveUserNewSetting(DistributeContentProductThird distributeContentProductThird);

    BigDecimal sumPercentUseExcludeUserId(Long productId, Long userId);

    List<ThirdProductDistributeProxyInfoRespEntity> selectListByProductId(Long productId);
}
